﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Protocol
{
    public class ControlResp : Command
    {
        public const string CONTROLACK_SUCCESS = "SUCCESS";
        public const string CONTROLACK_FAILURE = "FAILURE";
        public const string CONTROLACK_NORESPONSE = "NORESPONSE";
        public const string CONTROLACK_NOTLOGIN = "NOTLOGIN";

        public ControlResp()
        {
            AckCode = CONTROLACK_SUCCESS;
            Comments = "";
            PageNO = 0;
        }

        public string AckCode
        {
            get;
            set;
        }

        public String Comments
        {
            get;
            set;
        }

        public int PageNO
        {
            get;
            set;
        }

        public string DetailMessage
        {
            get;
            set;
        }
        public string Process
        {
            get;
            set;
        }
        public ControlReq.ProcessType GetProcessType()
        {
            return (ControlReq.ProcessType)Enum.Parse(typeof(ControlReq.ProcessType), Process);
        }
    }
}
